﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ArtCube.master" AutoEventWireup="true"
    CodeFile="Contact.aspx.cs" Inherits="_Contacts" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Src="Controls/MyCaptcha.ascx" TagName="ucCaptcha" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" href="Content/Contact.css" type="text/css" media="screen" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script type="text/javascript" src="Scripts/fancybox/jquery.fancybox-1.3.2.pack.js"></script>
    <script type="text/javascript" src="Scripts/fancybox/jquery.easing-1.3.pack.js"></script>
    <link rel="stylesheet" href="Scripts/fancybox/jquery.fancybox-1.3.2.css" type="text/css"
        media="screen" />
    <script type="text/javascript">
        $(document).ready(function () {
            $("#various1").fancybox({
                'titlePosition': 'inside',
                'transitionIn': 'none',
                'transitionOut': 'none'
            });

        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <ajax:ToolkitScriptManager ID="ToolkitScriptManager1" EnablePartialRendering="true"
        runat="server">
    </ajax:ToolkitScriptManager>
    <div class="pageHeader">
        <div class="headerText">
            <h1>
                <% =sBannerTitle %></h1>
        </div>
    </div>
    <div class="ContactForm">
        <div class="leftBlock">
            <h1>
                <%=FUNC.GetPhrase(6) %></h1>
            <asp:UpdatePanel runat="server" ID="upMain">
                <ContentTemplate>
                    <div class="fields">
                        <div class="field">
                            <asp:RequiredFieldValidator ID="rfvName" ValidationGroup="Mail" ControlToValidate="txtName"
                                runat="server" Display="Dynamic">
                            </asp:RequiredFieldValidator><br />
                            <asp:TextBox runat="server" ID="txtName" Wrap="false" MaxLength="80"></asp:TextBox>
                            <ajax:TextBoxWatermarkExtender runat="server" ID="wmName" TargetControlID="txtName">
                            </ajax:TextBoxWatermarkExtender>
                        </div>
                        <div class="field">
                            <asp:RequiredFieldValidator ValidationGroup="Mail" ID="rfvMail" ControlToValidate="txtMail"
                                runat="server" Text="req" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ValidationGroup="Mail" ID="emailValidator" ControlToValidate="txtMail"
                                runat="server" Text="req" Display="Dynamic" ValidationExpression="^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$"></asp:RegularExpressionValidator><br />
                            <asp:TextBox runat="server" ID="txtMail" Wrap="false" MaxLength="80"></asp:TextBox>
                            <ajax:TextBoxWatermarkExtender runat="server" ID="wmMail" TargetControlID="txtMail">
                            </ajax:TextBoxWatermarkExtender>
                        </div>
                        <div class="field">
                            <asp:TextBox Style="margin-top: 15px;" runat="server" ID="txtPhone" MaxLength="80" Wrap="false"></asp:TextBox>
                            <ajax:TextBoxWatermarkExtender runat="server" ID="wmPhone" TargetControlID="txtPhone">
                            </ajax:TextBoxWatermarkExtender>
                        </div>
                        <div class="field">
                            <asp:TextBox Style="margin-top: 15px;" runat="server" ID="txtContent" MaxLength="2000" TextMode="MultiLine"></asp:TextBox>
                            <ajax:TextBoxWatermarkExtender runat="server" ID="wmContent" TargetControlID="txtContent">
                            </ajax:TextBoxWatermarkExtender>
                        </div>
                    </div>
                    <div class="downBlock">
                        <asp:UpdatePanel runat="server" ID="upCapcha">
                            <ContentTemplate>
                                <div class="capchaBlock">
                                    <uc:ucCaptcha ID="ccJoin" runat="server" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        
                        <asp:ImageButton runat="server" ID="btnSend" ValidationGroup="Mail" ImageUrl="~/Content/Images/button_send.png"
                            AlternateText="send" OnClick="btnSend_Click" />
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
            <a id="various1" href="#inline1" style="display:none" >Inline</a>
        </div>
        <div class="rtBlock">
            <h2>
                <%=sTitle %></h2>
            <p>
                <%=sContent %></p>
        </div>
    </div>
    <div style="display: none;">
        <div id="inline1" style=" height: 20px; overflow: auto;">
            Your message was sent
        </div>
    </div>
</asp:Content>
